module.exports = {
    devServer:{
        proxy:{
            "/":{
                target:"http://192.168.54.22:3000",  //设置结构域名ip端口
                changeOrigin:true,
            }
        }
    },
    chainWebpack: config => {
        config.module
            .rule('less')
            .test(/\.less$/)
            .oneOf('vue')
            .use('px2rem-loader')
            .loader('px2rem-loader')
            .before('postcss-loader') // this makes it work.
            .options({ remUnit: 64, remPrecision: 8 })
            .end()
    }
}